package com.ctgu.computer.domain.po;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TextInfo implements Serializable {

    /** 文章id */
    private Integer textId;

    /** 文章标题 */
    @Schema(description = "文章标题")
    private String header;

    /** 文章具体内容 */
    @Schema(description = "文章具体内容")
    private String content;

    /** 文章所属频道id */
    @Schema(description = "文章所属频道id")
    private Integer channelId;

    /** 点赞数 */
    @Schema(description = "点赞数")
    private Integer goodCount;

    /** 评论数 */
    @Schema(description = "评论数")
    private Integer commentCount;

    private LocalDateTime createTime;

    @Schema(description = "简介")
    private String description;

    @Schema(description = "未读数")
    private Integer readCount;

    private String coverImage;
}
